﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _5.PropertyChanged
{
    public delegate void PropertyChangedEventHandler(object sender, PropertyChangedEventArgs e);

    public class PropertyChangedEventArgs
    {
        public readonly string PropertyName;
        public readonly object OldValue;
        public readonly object NewValue;

        public PropertyChangedEventArgs(string propertyName, object oldValue, object newValue)
        {
            this.PropertyName = propertyName;

            this.OldValue = oldValue;
            this.NewValue = newValue;            
        }
    }
}
